// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

/**
 * Enum for junction group types.
 */
enum class FWorldJunctionGroupType
{
	Roundabout,
	Unknown
};

inline FWorldJunctionGroupType FWorldJunctionGroupTypeFromJson(const json& j)
{
	if (j == "roundabout")	return FWorldJunctionGroupType::Roundabout;
	if (j == "unknown")		return FWorldJunctionGroupType::Unknown;
	return FWorldJunctionGroupType::Unknown;
}

inline json FWorldJunctionGroupTypeToJson(FWorldJunctionGroupType p)
{
	if (p == FWorldJunctionGroupType::Roundabout)	return "roundabout";
	if (p == FWorldJunctionGroupType::Unknown)		return "unknown";
	return "unknown";
}

inline void from_json(const json& j, FWorldJunctionGroupType& p)
{
	p = FWorldJunctionGroupTypeFromJson(j);
}

inline void to_json(json& j, const FWorldJunctionGroupType& p)
{
	j = FWorldJunctionGroupTypeToJson(p);
}
